package com.cardetective.shopcar.utils

import com.app.ctzoverseas.network.http.AccountNetwork
import com.app.ctzoverseas.network.http.AddressNetwork
import com.app.ctzoverseas.network.http.GoodsNetwork
import com.app.ctzoverseas.network.http.LoginNetwork
import com.app.ctzoverseas.network.http.OrderNetwork
import com.app.ctzoverseas.network.repo.AccountRepo
import com.app.ctzoverseas.network.repo.AddressRepo
import com.app.ctzoverseas.network.repo.GoodsRepo
import com.app.ctzoverseas.network.repo.LoginRepo
import com.app.ctzoverseas.network.repo.OrderRepo

object InjectUtil {

    fun getAccountRepo() = AccountRepo.getInstance(AccountNetwork.getInstance())
    fun getLoginRepo() = LoginRepo.getInstance(LoginNetwork.getInstance())
    fun getGoodsRepo() = GoodsRepo.getInstance(GoodsNetwork.getInstance())
    fun getAddressRepo() = AddressRepo.getInstance(AddressNetwork.getInstance())
    fun getOrderRepo() = OrderRepo.getInstance(OrderNetwork.getInstance())

}